import { NgModule, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
import { RouterModule } from '@angular/router';

import { GbSubjectSharedModule } from '../../shared';
import {
    CurrentStateMySuffixService,
    CurrentStateMySuffixPopupService,
    CurrentStateMySuffixComponent,
    CurrentStateMySuffixDetailComponent,
    CurrentStateMySuffixDialogComponent,
    CurrentStateMySuffixPopupComponent,
    CurrentStateMySuffixDeletePopupComponent,
    CurrentStateMySuffixDeleteDialogComponent,
    currentStateRoute,
    currentStatePopupRoute,
    CurrentStateMySuffixResolvePagingParams,
} from './';

const ENTITY_STATES = [
    ...currentStateRoute,
    ...currentStatePopupRoute,
];

@NgModule({
    imports: [
        GbSubjectSharedModule,
        RouterModule.forChild(ENTITY_STATES)
    ],
    declarations: [
        CurrentStateMySuffixComponent,
        CurrentStateMySuffixDetailComponent,
        CurrentStateMySuffixDialogComponent,
        CurrentStateMySuffixDeleteDialogComponent,
        CurrentStateMySuffixPopupComponent,
        CurrentStateMySuffixDeletePopupComponent,
    ],
    entryComponents: [
        CurrentStateMySuffixComponent,
        CurrentStateMySuffixDialogComponent,
        CurrentStateMySuffixPopupComponent,
        CurrentStateMySuffixDeleteDialogComponent,
        CurrentStateMySuffixDeletePopupComponent,
    ],
    providers: [
        CurrentStateMySuffixService,
        CurrentStateMySuffixPopupService,
        CurrentStateMySuffixResolvePagingParams,
    ],
    schemas: [CUSTOM_ELEMENTS_SCHEMA]
})
export class GbSubjectCurrentStateMySuffixModule {}
